﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspVisitXmissionStructure.aspx.cs" Inherits="PolePosition.v3.WcfService.MapServices.InspVisitXmissionStructure" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Balloon Text</title>
    <style>
        <!--
        html body {border-left: solid steelblue 5px; background-color: White; margin: 0px; padding: 0px; padding-left: 5px; font-family: Arial; font-size: x-small; width: 100%; height: 100%; overflow-x: hidden;}
        .title-main {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .title {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .indent {padding-left: 5px;}
        img.image {margin: 3px;}
        a.image {}
        a.image:hover {}
        .namevalue-table {border: solid gainsboro 1px;}
        td.namevalue-namecell {width: 100px; font-weight: bold; padding: 3px;}
        td.namevalue-valuecell {width: 165px; padding: 3px;}
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:FormView ID="FormViewAssetStructure" runat="server">
        <ItemTemplate>
            <table width='100%' cellpadding='0' cellspacing='0' border='0'>
                <tr>
                    <td align="right" valign='bottom'>
                        <asp:HyperLink ID="lnkBack" runat="server" Visible='<%#(Request.QueryString["HideBackLink"] == null)%>' NavigateUrl='<%#(Request.UrlReferrer != null) ? Request.UrlReferrer.AbsoluteUri : string.Empty%>'>< Back</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td valign='top'>
                        <div class="title-main">
                            <%#XPath("TITLE")%>
                        </div>
                    </td>
                </tr>
            </table>        
            
            <table class="namevalue-table" cellspacing="0" cellpadding="0">
                <tr><td class="namevalue-namecell">Record</td><td class="namevalue-valuecell"><%# XPath("Vendor_InspVisit_XMissionStructure_PoleId")%></td></tr>
                <tr><td class="namevalue-namecell">Map</td><td class="namevalue-valuecell"><%# XPath("MapName")%></td></tr>                
                <tr><td class="namevalue-namecell">Section</td><td class="namevalue-valuecell"><%# XPath("SectionName")%></td></tr>                                
                <tr><td class="namevalue-namecell">Number</td><td class="namevalue-valuecell"><%# XPath("Number")%></td></tr>                

                <tr><td class="namevalue-namecell">Inspection Type</td><td class="namevalue-valuecell"><%# XPath("InspectionTypeName")%></td></tr>
                <tr><td class="namevalue-namecell">Result Type</td><td class="namevalue-valuecell"><%# XPath("ResultTypeName")%></td></tr>                                
                <tr><td class="namevalue-namecell">Electrical</td><td class="namevalue-valuecell"><%# XPath("Electrical")  %></td></tr>
                
                <tr><td class="namevalue-namecell">Notes</td><td class="namevalue-valuecell"></td></tr>                
                <asp:Repeater ID="RepeaterAssetStructureNotes" runat="server" DataSource='<%# XPathSelect("NOTE") %>'>
                    <ItemTemplate>
                        <tr><td class="namevalue-namecell"></td><td class="namevalue-valuecell">- <%# XPath("Name")%></td></tr>                                
                    </ItemTemplate>
                </asp:Repeater>            

                <tr><td class="namevalue-namecell">Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td></tr>                                
                <tr><td class="namevalue-namecell">Inspector</td><td class="namevalue-valuecell"><%# XPath("InspectorName")%></td></tr>                                
                <tr><td class="namevalue-namecell">Company</td><td class="namevalue-valuecell"><%# XPath("VendorName")%></td></tr>                                
                <tr><td class="namevalue-namecell">Previous Inspection </td><td class="namevalue-valuecell"><%# XPath("LastInspection")%></td></tr>                

                <tr><td class="namevalue-namecell">Top Type</td><td class="namevalue-valuecell"><%# XPath("TopTypeName")%></td></tr>
                <tr><td class="namevalue-namecell">Length</td><td class="namevalue-valuecell"><%# XPath("Length")%></td></tr>                                
                <tr><td class="namevalue-namecell">Species</td><td class="namevalue-valuecell"><%# XPath("SpecieName")%></td></tr>                                                
                <tr><td class="namevalue-namecell">Class</td><td class="namevalue-valuecell"><%# XPath("ClassName")%></td></tr>
                <tr><td class="namevalue-namecell">Treatment</td><td class="namevalue-valuecell"><%# XPath("TreatmentName")%></td></tr>                
                <tr><td class="namevalue-namecell">Year</td><td class="namevalue-valuecell"><%# XPath("Year")%></td></tr>                                                

                <!-- Add other visit xmission properties here -->
            </table>
            
            <asp:Repeater ID="RepeaterAssetStructureImages" runat="server" DataSource='<%# XPathSelect("IMAGE") %>'>
                <ItemTemplate>
                    <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>
                </ItemTemplate>
            </asp:Repeater>
        </ItemTemplate>
    </asp:FormView>
    </form>
</body>
</html>
